#include <Arduino.h>
#include "display.h"
#include "motion.h"

unsigned long last_update = 0;
bool toggle = false;

void setup() {
    Serial.begin(115200);
    display_init();
    motion_init();
   // motion_enable(true);
  

    display_set_status("ok...");
   // motion_stand();
}

void loop() {
    display_loop();

   unsigned long now = millis();

    if (now - last_update >= 1000) { // 每1秒切换一次1
        last_update = now;
        toggle = !toggle;

        if (toggle)
            display_set_status("ok...");
        else
            display_set_status("yes...");
    }
}
